import request from '@/utils/request'

// 查询输运数据列表
export function listNew(query) {
  return request({
    url: '/service-ry/system/new/list',
    method: 'get',
    params: query
  })
}

// 查询输运数据详细
export function getNew(id) {
  return request({
    url: '/service-ry/system/new/' + id,
    method: 'get'
  })
}

// 新增输运数据
export function addNew(data) {
  return request({
    url: '/service-ry/system/new',
    method: 'post',
    data: data
  })
}

// 修改输运数据
export function updateNew(data) {
  return request({
    url: '/service-ry/system/new',
    method: 'put',
    data: data
  })
}

// 删除输运数据
export function delNew(id) {
  return request({
    url: '/service-ry/system/new/' + id,
    method: 'delete'
  })
}

// 导出输运数据
export function exportNew(query) {
  return request({
    url: '/service-ry/system/new/export',
    method: 'get',
    params: query
  })
}